#ifndef __W25Q32_H__
#define __W25Q32_H__

#include "spi.h"

#if SPI_MODE == SPI_MASTER_MODE_POLL

void w25q32_init(void);
uint16_t w25q32_page_write( uint16_t inaddr, uint8_t* buf, uint16_t n) ;
uint16_t w25q32_read(uint32_t addr,uint8_t *buf,uint16_t n);
void w25q32_erase_sector(uint32_t dst_addr) ;

#endif //SPI_MODE == SPI_MASTER_MODE_POLL
#endif //__W25Q32_H__